import {get,post} from './axios.js'

export default {
  userList : data => get('/user/list',data),
  userInfo : data => post('/user/userInfo',data),
  login: data => post('/user/login',data),
  delUser: data => post('user/delUser',data),
  regByAdmin: data => post('user/regByAdmin',data),

  //mock
  artList: data => get('/article/list',data),

  /**商品 */
  goodsList: data => get('/goods/goodsList',data),
  goodsAdd: data => post('/goods/add',data),
  goodsInfo: data => get('/goods/goodsInfo',data),
  goodsEdit: data => post('/goods/edit',data),

  /**订单 */
  orderList: data => get('/order/list',data),
}